package com.ruoyi.peizhen.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 科室对象 pz_hospital_department
 * 
 * @author ruoyi
 * @date 2022-03-13
 */
public class HospitalDepartment extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 科室名称 */
    @Excel(name = "科室名称")
    private String departmentName;

    /** 上级科室 */
    @Excel(name = "上级科室")
    private Long departmentFatherId;

    /** 医院ID */
    @Excel(name = "医院ID")
    private Long hospitalId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setDepartmentFatherId(Long departmentFatherId) 
    {
        this.departmentFatherId = departmentFatherId;
    }

    public Long getDepartmentFatherId() 
    {
        return departmentFatherId;
    }
    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departmentName", getDepartmentName())
            .append("departmentFatherId", getDepartmentFatherId())
            .append("hospitalId", getHospitalId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("sort", getSort())
            .append("status", getStatus())
            .toString();
    }
}
